import http from "@/api";

// 修改任务
export const taskUpdate = (params: any) => http.post(`/task/update`, params);

// 新增任务
export const taskAdd = (params: any) => http.post(`/task/add`, params);

// 查询所有
export const taskFindAll = () => http.get(`/task/findAll`);

// 查询当天日期下任务
export const taskFindByDate = () => http.post(`/task/findByDate`);

// 删除任务
export const taskDelete = (params: any) => http.post(`/task/delete`, params);

// 更新任务明细
export const taskDetailUpdate = (params: any) => http.post(`/task/detail/update`, params);

// 根据任务id和日期查询
export const taskDetailFindByTidAndDate = (params: any) => http.post(`/task/detail/findByTidAndDate`, params);

// 新增任务明细
export const taskDetailAdd = (params: any) => http.post(`/task/detail/add`, params);

// 根据任务id查询
export const taskDetailFindByTId = (params: any) => http.get(`/task/detail/findByTId`, params);

// 删除任务明细
export const taskDetailDelete = (params: any) => http.get(`/task/detail/delete`, params);
